package com.cskaoyan.mall.product.converter.dto;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cskaoyan.mall.product.dto.TrademarkDTO;
import com.cskaoyan.mall.product.dto.TrademarkListDTO;
import com.cskaoyan.mall.product.model.Trademark;
import com.cskaoyan.mall.product.query.TrademarkParam;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface TrademarkConverter {

    TrademarkDTO trademarkPO2DTO(Trademark trademark);

    Trademark trademarkParam2Trademark(TrademarkParam trademarkParam);
    List<TrademarkDTO> trademarkPOs2DTOs(List<Trademark> trademarks);

    TrademarkListDTO tradeMarkListPO2DTO(IPage<Trademark> trademarkList);



}
